package view;

import javax.swing.table.AbstractTableModel;

import model.os.OS;

public class RAMView extends AbstractTableModel {

	private static final long serialVersionUID = -7317189071414487376L;
	
	public static final int COLUMNS = 10;

	public int getColumnCount() {
		return COLUMNS;
	}

	public int getRowCount() {
		return OS.getInstance().getRam().size() / COLUMNS;
	}

	public Object getValueAt(int row, int col) {
		return OS.getInstance().getRam().getPageFrames()[row * COLUMNS + col];
	}
	
	@Override
	public String getColumnName(int column) {
		return "";
	}

}
